<%@ page contentType="text/html;charset=utf-8"%>
<%request.setCharacterEncoding("utf-8"); %>
<%@include file="../common/IncludeTop.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<head>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/default/easyui.css">
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
	<script type="text/javascript">
	</script>
</head>
<body>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td valign="top" width="20%" align="left">
<table align="left" bgcolor="#613E2E" border="0" cellspacing="2" cellpadding="2">
<tr><td>
<a href="${pageContext.request.contextPath}/category.do?path=show">
<b><font color="white" size="4">&lt;&lt; 购物车</font></b></a>
</td></tr>
</table>
</td>

<td valign="top" align="center">
<h2 align="center">收银台</h2>

<table  class="easyui-datagrid"  title="" style="width:800px;height:250px">
	<thead>
  <tr bgcolor="#cccccc">
  <th data-options="field:'itemID',align:'center',width:150"><b>原料编号</b></th>  <th data-options="field:'description',align:'center',width:150"><b>Description</b></th> <th data-options="field:'quantity',align:'center',width:150"><b>Quantity</b></th>  <th data-options="field:'listPrice',align:'center',width:150"><b>单价</b></th> <th data-options="field:'totalCost',align:'center',width:150"><b>总价</b></th>
  </tr>
  </thead>
<c:forEach items="${cartItems}" var="cartitem">

  <tr bgcolor="#FFFF88">
  <td><b>

<a href="${pageContext.request.contextPath}/item.do?path=show&itemId=${cartitem.item.itemid}">
${cartitem.item.itemid}</a></b></td>
<!--    <td>${cartitem.item.productid}</td> -->
  <td>
       ${cartitem.item.attr1}
  ${cartitem.item.attr2}
  ${cartitem.item.attr3}
  ${cartitem.item.attr4}
  ${cartitem.item.attr5}
<!--   ${product.name} -->   </td>
<!--   <td align="center">${cartitem.inStock }</td> -->
  <td align="center">
  ${cartitem.quantity }
  </td>
  <td align="right"> ${cartitem.item.listprice}</td>
  <td align="right">${cartitem.total}</td>
  </tr>
</c:forEach>
<!--  <tr bgcolor="#FFFF88">
<td colspan="7" align="right">
<b></b><br />

</td>
</tr>-->
</table>
<center>
<br>
  <span  style="width:130;">合计: ${cart.subTotal}元</span>
 <!--  <img src="${pageContext.request.contextPath}/images/button_prev.gif" border="0">


<img src="${pageContext.request.contextPath}/images/button_next.gif" border="0"> -->

</center>
<br>
<center><a href="${pageContext.request.contextPath}/orders.do?path=neworderform"><img border="0" src="${pageContext.request.contextPath}/images/button_continue.gif" /></a></center>
</td>


<td valign="top" width="20%" align="right">&nbsp;

</td>

</tr>
</table>

<p><%@include file="../common/IncludeBottom.jsp"%></p>




